﻿using System;
namespace OnlineManagement.Model
{
	/// <summary>
	/// Piglets:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class Piglets
	{
        public Piglets()
        { }
        #region Model
        private int _pigletid;
        private int _hoggeryid;
        private Guid _sowid;
        private Guid _pigpenid;
        private int? _phaseid;
        private Guid? _typeid;
        private DateTime? _birthday;
        private int? _sourceid;
        private DateTime? _datejoinfarm;
        private bool _isinfarm = true;
        private int? _account;
        private bool _iscastrate = false;
        private DateTime? _castratedate;
        private bool _ispiglets = true;
        private string _comment;
        /// <summary>
        /// 
        /// </summary>
        public int PigletID
        {
            set { _pigletid = value; }
            get { return _pigletid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int HoggeryID
        {
            set { _hoggeryid = value; }
            get { return _hoggeryid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public Guid SowID
        {
            set { _sowid = value; }
            get { return _sowid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public Guid PigPenID
        {
            set { _pigpenid = value; }
            get { return _pigpenid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? PhaseID
        {
            set { _phaseid = value; }
            get { return _phaseid; }
        }
        /// <summary>
        /// type id can be null or empty
        /// </summary>
        public Guid? TypeID
        {
            set { _typeid = value; }
            get { return _typeid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? Birthday
        {
            set { _birthday = value; }
            get { return _birthday; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? SourceID
        {
            set { _sourceid = value; }
            get { return _sourceid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? DateJoinFarm
        {
            set { _datejoinfarm = value; }
            get { return _datejoinfarm; }
        }
        /// <summary>
        /// 
        /// </summary>
        public bool IsInFarm
        {
            set { _isinfarm = value; }
            get { return _isinfarm; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? Account
        {
            set { _account = value; }
            get { return _account; }
        }
        /// <summary>
        /// 
        /// </summary>
        public bool IsCastrate
        {
            set { _iscastrate = value; }
            get { return _iscastrate; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? CastrateDate
        {
            set { _castratedate = value; }
            get { return _castratedate; }
        }
        /// <summary>
        /// 
        /// </summary>
        public bool IsPiglets
        {
            set { _ispiglets = value; }
            get { return _ispiglets; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Comment
        {
            set { _comment = value; }
            get { return _comment; }
        }
        #endregion Model

	}
}

